/*
 * @Author: 千锋爱佛僧
 * @公众号: 大前端私房菜
 * @Slogan: 千锋精品教程，好学得不像实力派！
 */
import store from "@/store";
// {
//   handlePlus: "count/increment",
//   handleMinus: "count/decrement",
// }
export const myMapMutations = (option) => {
  let obj = {};
  for (let attr in option) {
    obj[attr] = function (arg) {
      store.commit(option[attr], arg);
    };
  }
  return obj;
};
